﻿using StockMatch.WebSite.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace StockMatch.WebSite.Areas.Admin
{
    public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return AreasConfig.Admin;
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            if (AreaName.Equals("NOT")) return;
            context.MapDomainRoute(AreaName,
                                   new { controller = "AdminHome", action = "Index", id = UrlParameter.Optional });

        }
    }
}
